package co.baiku.boot.component.core.event;

public interface OrmEventListener<T> {

    void onCreate(OrmWhen when, T po);

    void onCreate(OrmWhen when, T po, Exception e);

    void onUpdate(OrmWhen when, T before, T after);

    void onUpdate(OrmWhen when, T before, T after, Exception e);

    void onDelete(OrmWhen when, T po);

    void onDelete(OrmWhen when, T po, Exception e);
}
